package rest.jbpm.wrappers.refs;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;

@XmlType(name="execution")
public class ExecutionRef {
	
	private static String base;
	private String executionId;

	protected ExecutionRef() {
		
	}
		
	public ExecutionRef(String executionId, String baseUri) {
		
		this.executionId = executionId;
		this.base = baseUri;
	}
	
	@XmlAttribute(name="ref", required=true)
	public String getDeploymen() {
		return base + "exec/execution/" + executionId;
	}

}
